home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / cvtansi.zip / CVTANSI.DOC < prev    next >
Text File  |  1991-12-06  |  2KB  |  52 lines

  1.  
  2. CVTANSI - converts mainframe style ANSI printer control codes into
  3.           ASCII control characters. v1.02 .
  4.  
  5.  
  6. Mainframe and other environments use printable characters in column 1 to
  7. control printer positioning. The valid characters in column 1 are:
  8. ' ' - (blank space) causes the printer to print this line directly after the
  9.       last line.
  10. '0' - double-space this line after the last line.
  11. '-' - triple-space this line after the last line.
  12. '+' - overprint this line on top of the last line. This is often used to
  13.       create bold text.
  14. '1' - formfeed to the beginning of the next page.
  15.  
  16.  
  17. CVTANSI will take these sequences and convert them into the standard ASCII
  18. print control characters of CR (Carriage Return - 0Dh), LF (Line
  19. Feed - 0Ah), and FF (Form Feed - 0Ch). CVTANSI will also strip off the
  20. first byte of each line (the ANSI control character). If CVTANSI can't
  21. understand the character in column 1, it will not strip it off and will
  22. single-space it after the last line.
  23.  
  24.  
  25. The command syntax is:
  26.     CVTANSI <input file> <output file>
  27. where <input file> is the file with ANSI characters and <output file>
  28. is where you want the conversion written to.
  29.  
  30.  
  31. Example: You have a mainframe program listing you have downloaded to your
  32. PC as PROGRAMX.LST and want to write it to a printable ASCII file,
  33. PROGRAMX.TXT. You would type:
  34.  
  35.   CVTANSI PROGRAMX.LST A:\PROGRAM.TXT
  36.  
  37.  
  38. CVTANSI is copyright (c) 1991 by Paul McGinnis. This program may be freely 
  39. distributed if you include this documentation. This program may not be
  40. sold or altered without permission from the author. The author will not
  41. be liable for any damage arising from the use or misuse of this program.
  42.  
  43.  
  44. I can be reached at:
  45. Paul McGinnis
  46. P.O. Box 28084
  47. Santa Ana, CA  92799
  48. Internet: TRADER@cup.portal.com
  49. CompuServe: 76056,201
  50. GEnie: EXP.ENG-
  51. America Online: PaulMcG
  52.